package com.david.cms.model;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
//@Entity
//@Table(name = "T_BUILDING")
public class Building{
	private int id;
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	private String itemName;//
	private Developer developer;
	private String licence;
	private String district;
	private String address;
	private String longitude;
	private String lat;
	private String caption;//
	private String image;
	private String kmzPath;
	private String html;
	private double buildAreaAveragePrice;
	private double insideAveragePrice;
	private String remark;
	private double totalArea;
	private String wy_type;//物业类型  1，住宅 2别墅3写字楼
	@Column(name = "WY_TYPE")
	public String getWy_type() {
		return wy_type;
	}
	public void setWy_type(String wy_type) {
		this.wy_type = wy_type;
	}
	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Column(name = "ITEMNAME")
	public String getItemName() {
		return itemName;
	}
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
	@JoinColumn(name = "DEVELOPERNAME")
	public Developer getDeveloper() {
		return developer;
	}
	public void setDeveloper(Developer developer) {
		this.developer = developer;
	}
	@Column(name = "LICENCE")
	public String getLicence() {
		return licence;
	}
	public void setLicence(String licence) {
		this.licence = licence;
	}
	@Column(name = "DISTRICT")
	public String getDistrict() {
		return district;
	}
	public void setDistrict(String district) {
		this.district = district;
	}
	@Column(name = "ADDRESS")
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	@Column(name = "TOTALAREA")
	public double getTotalArea() {
		return totalArea;
	}
	public void setTotalArea(Double totalArea) {
		this.totalArea = totalArea;
	}
	@Column(name = "LONGITUDE")
	public String getLongitude() {
		return longitude;
	}
	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	@Column(name = "LAT")
	public String getLat() {
		return lat;
	}
	public void setLat(String lat) {
		this.lat = lat;
	}
	@Column(name = "CAPTION")
	public String getCaption() {
		return caption;
	}
	public void setCaption(String caption) {
		this.caption = caption;
	}
	@Column(name = "IMAGE")
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	@Column(name = "KMZPATH")
	public String getKmzPath() {
		return kmzPath;
	}
	public void setKmzPath(String kmzPath) {
		this.kmzPath = kmzPath;
	}
	@Column(name = "HTML")
	public String getHtml() {
		return html;
	}
	public void setHtml(String html) {
		this.html = html;
	}
	@Column(name = "BUILDAREAAVERAGEPRICE")
	public double getBuildAreaAveragePrice() {
		return buildAreaAveragePrice;
	}
	public void setBuildAreaAveragePrice(double buildAreaAveragePrice) {
		this.buildAreaAveragePrice = buildAreaAveragePrice;
	}
	@Column(name = "INSIDEAVERAGEPRICE")
	public double getInsideAveragePrice() {
		return insideAveragePrice;
	}
	public void setInsideAveragePrice(double insideAveragePrice) {
		this.insideAveragePrice = insideAveragePrice;
	}
	
}
